package com.evil.application.pojo.dto.form.control.code.config;

import com.evil.common.application.dto.permission.app.AppPermissionDTO;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 成员选择器控件配置实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class ControlSelectConfigDTO {

    /**
     * 默认选择
     */
    private List<Long> defaults;

    /**
     * 权限类型，0：全体，1：指定
     */
    private Integer permissionStatus;

    /**
     * 选择范围
     */
    private List<AppPermissionDTO> scope;

    /**
     * 动态
     */
    private List<AppPermissionDTO> dynamic;

    public ControlSelectConfigDTO() {
        this.defaults = new ArrayList<>();
        this.permissionStatus = 0;
        this.scope = new ArrayList<>();
        this.dynamic = new ArrayList<>();
    }
}
